﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsStore.Domain.Entities
{
    public class Product
    {
        public int ProductId { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public decimal Price { get; set; }
        public string Category { get; set; }

        public static bool operator ==(Product a, Product b)
        {
            return (!((object)a == null || (object)b == null))
                && a.ProductId == b.ProductId;
        }

        public static bool operator !=(Product a, Product b)
        {
            return !(a == b);
        }
    }
}
